package com.sunyard.pcc.core.manager;

import com.sunyard.michiru.common.entity.PageResult;
import com.sunyard.pcc.dal.model.SysMenuDO;
import com.sunyard.pcc.dal.query.SysMenuQuery;

import java.util.List;

/**
 * Manager for SysMenu.
 */
public interface SysMenuManager {

    /**
     * query count by query condition.
     */
    int countByQuery(SysMenuQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(SysMenuQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(SysMenuDO record);

    /**
     * insert selective.
     */
    long insertSelective(SysMenuDO record);

    /**
     * select by query condition.
     */
    List<SysMenuDO> selectByQuery(SysMenuQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<SysMenuDO> selectByQueryWithPage(SysMenuQuery query);

    /**
     * select by primary key.
     */
    SysMenuDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( SysMenuDO record,  SysMenuQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(SysMenuDO record, SysMenuQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(SysMenuDO record);

}